<script setup>
import { defineProps, useAttrs } from "vue";
import customMenuItem from "./customMenuItem.vue";

const props = defineProps({
  menu: {
    type: Object,
    default: () => [],
  },
});

const attrs = useAttrs();
</script>
<template>
  <el-menu :="attrs">
    <slot name="customTitle"></slot>
    <customMenuItem :menuList="menu" />
  </el-menu>
</template>
